
//
// 110515 - AH - (Garage) Created.
//

package org.soekrat.gui.swing.studio;

import java.awt.BorderLayout;

import javax.swing.JPanel;

import org.soekrat.engine.Soekrat2Engine;
import org.soekrat.gui.swing.chat.convention.ConventionPanel;
import org.soekrat.gui.swing.chat.objectconversation.ConvPanel;

/**
 * <p>
 *   {@link RatStudioView} to show 
 *   {@link ConventionPanel} in a dockable way.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC)
 */
@SuppressWarnings("serial")
public final class ConversationStudioView extends RatStudioView 
{
  /**
   * <p>
   *   Constructor.
   * </p>
   * @param engine {@link Soekrat2Engine} interfaced.
   */
  public ConversationStudioView(Soekrat2Engine engine) 
  {
    super("The Conversation", engine);
    
    JPanel panel=getContentPanel();
    panel.setLayout(new BorderLayout());
    panel.add(new ConvPanel(engine), BorderLayout.CENTER);
  }

  @Override
  protected boolean isConversationTitleEditable(){ return false; }
  
}
